package com.imooc.mail.dao;

import com.imooc.mail.pojo.Shipping;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wjc
 */
public interface ShippingExtMapper {
    /**
     * 通过uid和shippingId来删除收货记录
     * @param uid
     * @param shippingId
     * @return
     */
    int deleteByIdAndUid(@Param("uid") Integer uid, @Param("shippingId") Integer shippingId);

    List<Shipping> selectByUid(Integer uid);

    Shipping selectByUidAndShippingId(@Param("uid") Integer uid,
                                      @Param("shippingId") Integer shippingId);
}